require(["footballblog/FootballblogApiClient", "dojo/dom", "dojo/dom-attr", "dojo/on"], function(FootballblogApiClient, dom, domattr, on){
	var apiClient = new FootballblogApiClient();
	//on(dom.byId("formButton"), "click", lang.hitch(getArticle, getArticle.fetchFormData));
	on(dom.byId("formButton"), "click", function(evt){
		
		var articleId = domattr.get(dom.byId("articleId"), "value");
		apiClient.getArticle(articleId, function(article){
			//dom.byId("authorId").innerHTML = authorId;
			//dom.byId("articleTitle").innerHTML = articleTitle;
			//dom.byId("articleDate").innerHTML = articleDate;
			//dom.byId("articleContent").innerHTML = articleContent;
		});
	});
});

